Fixed a typo in getDoubles