Authorization problem in parent registery fix 

2 small changes look at the commit for details