fix innerbean and outerbean definition in global namespace