Update configuration and fix preview problem.