fixed problems in models