Fixed length calculation

- read length bytes from data
Increased version