Debugging an issue with splitting the keys