fix wrap arounf in interactive mode