really fixed unexpected end of pattern