fix reference API