maybe sleep for some seconds will make the trick,