fixes #1407
partial fix for #1363 (notice cannot be closed)