Fixed bug which broke submit()