Tojutaha on discord Found a solution by disabling type promotion in editor settings. now it works the way it should.