Fix small mistake in the previous visible region patch.