added fix mentioned in https://github.com/fzaninotto/uptime/pull/246/files