Fixed problem with authorization