fix a bug in generating suggestions table through the web interface