fixes freeze bug when trying modify the piece thats now nill