fix bug in lsys.getDrawCommands