fix preview/unpreview not updated