fix possible double exec call