fix trouble with rectangle set