fix the alignment bug on the second layer