diff --git a/aggpxtrack-update4.xml b/aggpxtrack-update4.xml
index 95fb675..f338ffb 100644
--- a/aggpxtrack-update4.xml
+++ b/aggpxtrack-update4.xml
@@ -99,7 +99,7 @@
Astrid Günther
https://astrid-guenther.de
- 92e6e78842ac23b606ab28c01da1b8ea5528015e8e14e2de912059fe3685d3fb
- 1752443de46e05dd9e18a134075590f4fc33d862a33595a3c15629566110e55e1e7076e0cff2816f6901d1ffe51c949e
+ 754989077dd0aa7294c23d3244062ad5677affab7e84458efd7125a632a9f113
+ 07db5ef8ba1d44603b9ca6c1a3ed6a3404123eff40f11779b3a1b7857fea0684b932057157eecab00b0b1c236bb137dc
\ No newline at end of file
diff --git a/j4/pkg_aggpxtrack/jorobo.ini b/j4/pkg_aggpxtrack/jorobo.ini
index 29925c6..3d45b36 100644
--- a/j4/pkg_aggpxtrack/jorobo.ini
+++ b/j4/pkg_aggpxtrack/jorobo.ini
@@ -1,5 +1,5 @@
extension = aggpxtrack
-version = 4.0.5
+version = 4.0.4
source = src
target = package
diff --git a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/tmpl/aggpxtrack.php b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/tmpl/aggpxtrack.php
index cdc5b8e..583d3b0 100644
--- a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/tmpl/aggpxtrack.php
+++ b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/tmpl/aggpxtrack.php
@@ -24,7 +24,11 @@
$value_raw = $field->value;
-$value = (array) substr($value_raw, 0, strpos($value_raw, '#joomlaImage:'));
+$value = (array) $value_raw;
+
+if (str_contains($value_raw, '#joomlaImage:')) {
+ $value = (array) substr($value_raw, 0, strpos($value_raw, '#joomlaImage:'));
+}
$buffer = '';