Fixed viewCount bug