fix shares endpoint