Bug fix: delete isn't working