Fix #2040: Preview does not work