fixed bug preventing count and icon from resetting to 0 when clicked