fix http://modx.im/blog/addons/2652.html#comment24219