Fixed bug with exec command.