fixed regression bug in fix to #212