Fixed issue with c tail in problem 2