Fixed adding factory under wrong key.