fixed issue with preg_match