Fix get method because of algorithm mistake