bugfix in models