Fixed error when pressing tab in chat