Fix signature of on_modified