Fixed problem with showing preview