fix for recent GHCs