The problem went away after I read that the number per generation has to be even... before that I was incrementing population in steps of 5, so odds are that's where the bug is.