Fixed bug where modifying model was losing input.focus