Fix function * exists error when re-sourced