fix ambiguity warning with SharedArray