permission response and validate cache bug fix