It might be related to the generator.
Do you still see this issue, if you remove the penalty calculation?
Also, would it be possible to post the complete generator code or is it still unpublished work in progress?
In that case, could you try to come up with a small code snippet to reproduce this issue?