Fixed bug calculating skew