fix bug in parsing action codes