fix error -two log offset in QL.fit