fix minor warning with default return value