Fix angular-ui ui-route for libraries