fixed a small crash
undefined