crash fix
check keys