Fixed SB overflow bug