fixing problems with preview styles