Swapped assign and preview