Update rectangle