Fix of gaussian func