Fix for interactive mode.