Fixing bug in rep cmd where we were taking head of empty list. :cop: