fix global slot bug