Fix typos

"factor" -> "factory"
"descired" -> "desired"