Fixed creation of 'keys' with a single element