fixes http://tests.obspy.org/8596/#2