orm bugfix