Fixed problem with mailPattern