Fix some issues with the php file.