fixed bug with registering