Fix checkHalf
Clean checkHalf