fix generatepreview request