publish: fix closing overlay

generated from commit 79a6fb67301bf27d033437a3b0240bf089c7acf9