Fix factory argument order and mismatched paren