fix key not found error