Fix #1 for ajax submit