While loop label appears in the wrong place wtf