Fixing rb key output issue