Fix error in overlay