fix a 2.10 warning

closes #589