patch to make sure .keys is set before acting - not sure what this is conflicting with as Google seems ignorant of the issue