fix problem with models