Yeah, I have no idea how this is guaranteed to work correctly.