Fix timeout not working