Fixed bug - printing rest command