apply_settings.php fix