Add missing return statements

Why did no one notice this?