init for bash
bug fix