fixes key when handling update