Fix errors in clientside permission loading