correct overlay behavior