fixes part of turbolinks/map reloading issues