resolve a bug that set frame in child thread