fixed an issue with /register