fixed code container save function