Bugfixes related to last_action_time