Fixed an issue with the model binder when reading from the dom at the wrong time