fix for kz inside layer