bugfix for arch - thanks to guitarman