Fixed model no longer being updated when input contents has been deleted