[bugfix] check if model from DOM is the right one