fix for issue #9 on usgs-r