fix issue when parameter initialized before ros::init call