Fix error from chat being null