fix debug model problem