Found the bug, finally.