fix compilation error for sqrt method call

Fixes failing build