typo and preview fix
typo
preview handling