Some fixes for sealing.