script fix, preview fix