fix bug in interactive mode