Fixing orm definition