fix interaction with shell under linux
fix bug