Fix #288 keyword pattern problem in buffer source