Review code and fix bug at delete function