Fixing rectangle's position