fixed problem reverse order priority