Fixed compiler errors in the output_logic block.