Fix https://github.com/rstacruz/nprogress/issues/97 bug