Fix _gaussian function