Fixed preview method error