Minor change in _get_data

The problem for returning the scalar value when the size of the location
argument is bigger than one, has been solved.