fix initialize handling in interactive mode