fixed a bug where the models could not be added