Getting error in publishing