fixed the invalid last face issue