fix content length on empty data