fixed nasty bug in getKeySpaceId