fixed async rendering problems