fixed a bug in boss.php