Finally found the bug...