[noticket] Fix exception when applying for pub.