Fixed stackoverflow error when defaultAlias is absent