Fixed bug with rect sync.