fixing-issue#709

@dwightguth please review