fixed bug in regexp