Fix page breaking when invalid warning is locked