fix js typo on repopulate after delete