[fix] Don't return undefined as result