Fixed a Z-Order bug.