 In 821, Liu was again transferred to Kuizhou (on the Yangtze River), then transferred to another post at Hezhou (Guangxi).In 826, Liu was again recalled, this time to Luoyang, ending the long period of his banishment from the court.In 827, he was given a post in the government, becoming a director (langzhong) of a bureau the following year.