This conversion from `selector` to `key` is not safe. 
Since `sizeof(selector)` will be 8bits while long is 4bits on 32bit system.
On 64bit system, the values are  doubled.