fixes broken preview