Why is there a difference between editor and preview mode?