fix chat.php