Fix incorrect type for accessor in diagnostics