fixed compile error for GHC 7.8

This is just a small fix