Fixed deadlock updated sample