fix another potential crash. bump version number for 2.3.1.