fix not working example code