fix bug on deleting ad