Fixed bug with php