make sure, preview window format is defined