Provided, however, that the increased compensation herein before provided shall not be paid to any person, other than the heads of the various departments of the government of the state, who holds any of the offices aforesaid, and who is subject to military duty under the act of congress; but such person shall only receive the compensation prescribed by law for his office prior to the 13th day of