Bug Fixes

Fixed bug with authorization.