fix empty file don't exit after display