Fixed crash when subscribe used without publish