Fixed build error because of missing return value