Seams to be something strage with rectangle function.