rectangle fix