Error: Using $this when not in object context

Fix "Using $this when not in object context" error.

build_from: name
save_to: name

Run: first save "test" and after save "test 2" and then save "test". This is error!