Fix the bug related to the empty version list