first bg z index fix