fixed creating pub issue deleted the is_pub