bug fixes where depth and opacity of items could be off