fix bug with parsing of empty types