fix rectangle clear