Fixed issue on running external command