fix to compile under 1.6