fix bug in setview