fix bug in rect, need to stroke after rect call, not before