fix(safeApply): fixed issue with safeApply setup