Fixing setClasses / classPrefix logic