fix key issue on older platforms