fix view_all bug