fix for this 

https://github.com/dmi3yy/modx.evo.custom/commit/7ca78a969b52953c718353845ebaa2c967e29a4c