fixed bug with regexp at parsing.