Bug fix: overlay's z-index higher than endpoints.