fix mistake in command return code processing if -i option is used