Fix wrong factory method call