Pub not working