corrected layer number error