fixed entry time bug