Fixed a bug where the delete buttons would stop working sometimes.