Fixed PHP errors.