Fixed problem with regexp