bug fix-rectangle contains wrong y coordinate... I should not context
switched while coding... I remembered I was going to fix that bug.