Fix: undefined spec object