fix bug for version and warning message