Set global variables in checkStartPoint to prevent crash