fixed SafeActions example