Fixed bug in AGMBD parser