fix compilation with custom keys