fixed issue in core module, ty @DarkmantisCS >.>