fix duplicating-alias generation
fix get relation table before including its path