Fixed overflow problem
Reduced duplicate chat error