Fixed local box bug