fix bug print