Fix error with preg_replace()