fix #317: Off-by-one error in background syntax check