fix type conversion in range Worker