Fixed trouble with terminal