fixed null-ptr bug