Fixed bug where delete wasn't working