fixed case if Swift is deactivated