Fix issue with messages.php