fix inconsitent stack height when switch in a loop
remove debug statements