fix http://modx.im/blog/questions/1547.html#comment18111