Fix overlay hiding on all elements