Fixed bug in protection module.