fix a bug in views ui