Fixed calculation of Lapacian