Temporary and VERY clumsy hotfix to the weirdest bug in the universe. Currently have no idea how to actually fix it.