fix checks for package type theme