fixed bug in static model