Fixed error in temp entity.