fix bug of get init position of piece