プレビュー関数修正

Signed-off-by: Naoya Kikuchi <ashidome@gmail.com>