Fixed wrong counter