fix popup rendering animation bug