Fix save problem in pointlcoud viewer