Fixed a bug about the order of sites