Bug in do_cat function was fixed