fix clean rect