bug in fill_rectangle fixed