fixed some bugs bro
fixed the null data bug in add, reconstruct might still be buggy