fixed recursive denial bug