Fix minor problem with anti-Z-fighting code