Fixed regression with newly open document not registering