fix rectangle