Fix a bug generated by my own stupidity. The right ads will display at the right place on the pages single.php and category.php