Changed the order of <HEAD> in final output.