added fix for view count