bug fix in pub