make custom theme safe