fix IndexError when len(VERSION) < 4