Fixed can view permission bug with keys