Fix: last_hard_state returns int instead of string (applied patch submitted by LaMi)