fix interactive mode

this part of the patch is fine. It's just part of the reverted commit