Get permission bug fixed