Fixed some rect traversal issues.