Fix conditional module rendering