fix http://modx.im/blog/questions/2239.html#comment22469