fixed bug in checking for loop escape blocks