Fixed submit redirect bug