bug fixing in query rewritng
Merge pull request #79 from isururanawaka/master

bug fixing in query rewritng