Bug fixed and MOOC example updated