Fix bug in convert-from function.