Fixed for index from float to double