Fixed a little bug in advertisement extension