fixed a bug where int keys wouldnt give back proper values