Fixed
Handle PHP error better