weightb: reinitialize weight table when weightb is off
nal: add more padding for corner cases