fix not implemented handling for .while loops