Fix reloading under rails.