yaml file ending check and translate bugfix