Added a timer to make sure a refreshed file is read properly

Don't like this though. The timer is just a workaround. I don't know
what is the root cause.