Fix ambiguous type that GHC 7.8 was complaining about