fix % pattern