solve a bug running in unix