fixed bug in order of iteration of hdus