fixed updating time every second