Fixed getFactory mistyping error