Fixes specialize script bug