Try ensuring cast to double