two fixes in rect