fixed debug order