fix undefineds in acl when permission denied and in debug message