fix weight updation for all delete cases