fix bug in openEnvironmentWithMapSize:
fix bug in set:key: