Fix #316

This commit fixes #316. Id of the displayed string was not updated properly.