Fixed error reported by dayron1313 (github #5)