Fix rectangle size and offset