remove initial hasOne and hasMany
fix generate path