fix some bug in views