Fixed registration, which wasn't working