This is superweird. But it fixes the bug.