Fix contains in SharedMap