bug fix in background clipping computation