fix bug of clipping