fix rebuild switch