Fix to the type setting that wasn't working