bug in bet parsing