Fix bug in php