Fix error on mysql timeout