object creation fix [0.2.9] (issue #52)