bug with searching by regexp fixed