fixed a bug of undefined