fixed random php error