fix bugs in yacc, for multiaction.bgd