fix(thread) Missing return caused messages() -> undefined