Corrected the head list fetching error