Fixed regexchecking