fixed listen length bug