fixed bug in compound clause