Fixes sqrt to perform actual square root rather than inverse.