fix secured layers