Fixes issue with history exec not executing the command