small bug in submission logic