fix re-range