fix for form issue in preview