fix log and rhoelements warning