Model: Fixed the problem. now the models can be registered and
unregistered without problems.