Updates reference from `spec` to `s`