Fixed a bug in FGM notebook

Fixed FGM notebook problem mentioned in #1794.