fixed exec bug