fix bug of NULL ptr for edge kbps object