Corrected bugs on the examples