fix deleting stages