Fix timeout error bug