fix conflict between portal and chatbox