fixed nestable serialize