fixed bugs in calling convention for momentum map on S3