the 1. bug is first message received from other users will be lost
the 2. bug is the browser popup 'undefined' chat box