Fix setting length