fixed Stage null object bug