The bug somehow slipped past the testing, and i didnt have enough time to figure out the cause of the bug :/