fix a typo
fix ereg_replace deprecated