fix comparison to properly migrate static ranges
Merge pull request #211 from akeym/fix_range_migration

Fix comparison to properly migrate static ranges