fix tail call compiler bug