Forgot to change history index after saving new command
Fix focus first input field