Fix addres length setting