fixed to use correct key in json to deletion