Do not redeclare variable "versions".
Try to fix invalid versions.