fixed a bug in loading view=result pages