fixed the bug that made the app crash when hitting accept and refreshing the table input