fix ghc warnings