fix compatibility issues between qChat and jChat