Form calculating different values in preview and when embedded