Fixed copy, init and del matrix sizes.