model bug fixed