fixed unnecessary warnings when using periodic kernels