Fixed a problem with the dynamic registration.