fix the extra return symbol bug