Fixed errors in php files