Fixing a type error caused by the Patrick O'Briens of the world