fixed bug in schematic