fix many bugs in customizable objects, and some cleaning