Changed when to once

"Once" is used once an action is complete, while "When" is used when an action begins.