Set beginning & length
Fixed typo