Fix bug print order