view and count fix