UPD: fix main.php for display debug panel, bad condition