Fixed unnecessary calculation.