Set xy block bug fix