Fixed problem with guassian surface.