fixed issue with preview