properly update_by_last_action

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>