Fixing float type back to double