Safety fix

It did not affect the study so far, but could have, found in the
reviewing code time!