fixed issue with registration