Bugfix on authorization on pic