fix max mod number overload core