fix model define