fixed a bug when using multiple aliased commands in a single statement
fixed a bug when using multiple aliased commands in a single statement