fixed register manager/admin issue