Bug fix where web output wasn't in correct order