GridGenerator Fix

Fixed the missing line of code.