Fix exception including an undefined variable $b