Fixed model bug.