This was caused by weird bindings. Now just access the userId value directly. Fix #324
mentioned in commit 293288a0