fixed bug with numBehind