fixed php no indexing bug with delete