Fix bug with clean historical products scheduled job