fix problem with preview