fix reference to function.