fixed related data re-ordering not working