Protect against zeroed scope. Fix #177.