fixed prefix recovery in decoder