fix res key warning