fixed re-ordering of data layers