Error in getAuthorities. WIP