DeleteByKey fix