Fixing PHP errors.