fix for backend order query