The levels_unlocked is being read into a scene variable, but that value is never passed to the global variable max_level_unlocked. You need to set the global variable max_level_unlocked to Variable(levels_unlocked) straight after reading from storage.
That did the trick! Thanks again!!!