The problems were all rectified by the close of 1840