fixed bug in model-manager

model would contain attributes pointing to old types