Fixed PHP remove bug