fixed permission check