Fixed error when program start from terminal.