fixing pub bugs