Fixed PHP Errors