fix for counter