Not rendering overlay twice