Fixed issue with register scope. http://goo.gl/ke2rbt