fix nil pointer dereference in volume command (error printing)