Fix some function links