fix js bug with new submissions