fixed code in AdActionModel