set correct content length