Fix PHP script error