[code] fix index access in GET