fixing hash keys for old ruby versions complience