corrected Z window
Fixed Z window