fixed problem with generated fetch joins