fix declaration of public dir