Small changes in the tileEntity code