bug fixed --> zOrders are placed incorrectly