minor crash bug detected and fixed