rehab avail.options fix and bridges overflow fix