fix xy issue