change error key check