Directory labelling not working for different Zs