fix error in model constructor, affects only julia 0.2 ref #269