Edit rectangle problem