fix prefix length issue