I have an annoying error that happens for no reason.

Look:
Failed to load game.
The following errors occurred:
Error adding script 'if (GetBoolean(newspaper, "copy") and GetBoolean(securitycard, "purple")) {
securitycard.look = "A police security card with the words: Authorized police. Allow to pass.
SetObjectFlagOn (securitycard, "police")
}
else if (GetBoolean(newspaper, "copy")) {
msg ("You need to change the colour first.")
}
else {
msg ("What are you copying?")
}': Missing '}'
You'll notice that
there is no bracket missing.
This happened to me before too.