fixed x_time bug