fixing the overlay