fix protect bug