Fixed submit button crash bug.