Fixed MediaItem.delete method