fixed variable declaration

$inBS = false;
needed to be set higher