Fixed a bug with a model in the manage controller