keep acc.set within clip bounds

Change-Id: I6af2eda03148dd400afa2f375b98e396ab0d5f3c