Fix AssertionError on /register