fix bug parsing warning messages