fixed empty name parsing bug