fix transferStackInSlot bugs