fix sign error on angle in rect