[frontend] Fixed bug occurring when trying to delete file after rename