Fix required non-global attribute