Fix content-length check