fixed my typo in opaque factory