Fix MaxCull bug, issue #27