Fix246

Fixing issue #246