fixed a bug causes the app crashing. parsing the uptime from the input