fixed a bug in GaussianVisLayer