Send correct params to preview endpoint. Fixes #881