bugfix ads encoding