Forgot to convert the number I read from the last config to an int. fixed it now