fix for http://www.calculate-linux.org/issues/640