solve the time bug in display controller