fix clip bounds bug
optimizate the path clip