Fixing iframe bug on safari

safari was crashing on submit