fixes for dynamiclly created objects