fix makeVersion function