fix(guard): using  instead of setTimeout