Fix bug and etc.

Fix a bug about preview.
Refine added keymap.
Clear codes.