Fixed behavior when keyname is wrong