fix isBoss condition