fix slot length bug