Fixed bug when finding a return statement