Fix setting timeout