fix null pointer exception when creating routing engine