Fix error message 1.8 compatibility