[frontend] preview mode fix