Fix hardcoded buffer lenght.