Fixed problems in doc examples