fixed warning when version is undefined