fix max and min count checking
use omspec before valid can be used
Merge pull request #249 from benjamg/hotfix/highway_spawn

fix max and min count checking