Fixed long-double conversion issues