fixed bug in else body