corrected bug on examples