Reset document on transform