fixed bug in regexp parser