bugfix in fdg construction