added a missing +1 for bounds in symbol.c