fixed levelEnd