Fix set but unused variable warning
Prevent false pow() result