Fixing attack checking.