fixed the postgress order changing bug I think