Fixed error with two functions named delete