changed more occurrences of 'sync' into 'local'. No difference, still crashes everywhere.