fixed submission preview script