Repaired thread return value