Fixed NaN issue for the number of views.