fix exception if no data is parsed