Fixed register collision bug, used wrong factory reference