fix exec bug