fix the length