fixed sourcing order bug in atn