fix IndexError when len(VERSION) < 5