Fix (hopefully) bugs in ex submission in chrome and safari