Fixes installing a theme

This fixes the problem when trying to install a new theme.