fix the bug in protect words