fix rectangle with size