BUG : Fixed bug in preview window