plots were not display in correct order