fixed a severe bug of dereferencing pointer's pointer