getUptime fix

better implementation of the fix