roughly fix problem of overlaying
fix bug of overlapping