fix resourse.php http://modx.im/blog/questions/2197.html