Fix missing return value crash