fixed the strange segment error