b frame segfault fix (+-1 bug)