fixed delete - it wasn't working