fix reference error in decoder