model bugfix