Fixed Delete bug