fix gmatch bug when patten is [^a]