fix a bug when no translation attributes is provided