I changed „when“ to „if“. „When“ means that something will happen for sure, even though some people use it instead of „if“.