fixed errors in php