bug fixes

- fixed bug of scrambled suggestions
- fixed bug of crash due to "selected cell" pointing on nonexisting
index.