This is probably not the right fix but it fixes the bug.