Fixed GHC warnings