fix warning on GHC 7.8