Delete function is fixed