Fix simple factory method.