Fix state loading

Too much $this

Signed-off-by: Paul Brook <paul@nowt.org>