fixing regexp error