Fixed Step counter bug