Fixes bug when submitting a new solution.