Fix key_error when downsizing kpionts