Fix bug for 'eval' command in terminal