fix model definition bug