fix a few issues with view count tracking