fixed compile error for GHC 7.8