Fixed counter problem