fix encoding
set parent model